package com.xgry.bpm.api.base.messagesend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author adrian
 * @since 2020-07-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("message_send")
public class MessageSend extends Model<MessageSend> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "msg_send_id", type = IdType.AUTO)
    private Integer msgSendId;

    private String appendix;

    private Integer isDel;

    private String oldMsg;

    private Integer msgInfoId;

    private String msgText;

    private String msgTitle;

    private LocalDateTime pushTime;

    private Integer status;

    private Integer userId;

    private String sendPeople;

    @TableField("sendName")
    private String sendName;

    @TableField("userName")
    private String userName;

    @TableField(exist = false)
    private String sendPeopleName;


    @Override
    protected Serializable pkVal() {
        return this.msgSendId;
    }

}
